﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="InternshipManagement.Helpers" %>
<ul class="submenu">
    <% if (((List<int>)Session["UserPrivileges"]).Contains((int)UserPrivileges.ListUsers))
       { %>
    <li <%= ViewBag.StudentOp == 1 ? @"class=""selectedop""" : "" %>>
        <%: Html.ActionLink("List Users", "UserList")%>
    </li>
    <%} if (((List<int>)Session["UserPrivileges"]).Contains((int)UserPrivileges.CreateUser))
       { %>
    <li <%= ViewBag.StudentOp == 2 ? @"class=""selectedop""" : "" %>>
        <%: Html.ActionLink("Add New User", "UserCreate")%>
    </li>
    <% } if (ViewBag.StudentOp == 3)
       {%>
    <li class="selectedop">
        Edit Student
    </li>
    <% }%>
</ul>

